﻿using SqlSugar;

namespace WebApi.Models.Database.DbName
{
    /// <summary>
    /// 用户登录表
    /// </summary>
    [SugarTable("account_login")]
    public class AccountLoginModel
    {
        /// <summary>
        /// 主键id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
        public long Id { get; set; }

        /// <summary>
        /// 账号id
        /// </summary>
        [SugarColumn(ColumnName = "account_id")]
        public long AccountId { get; set; }

        /// <summary>
        /// token
        /// </summary>
        [SugarColumn(ColumnName = "token")]
        public string Token { get; set; } = string.Empty;

        /// <summary>
        /// 过期时间
        /// </summary>
        [SugarColumn(ColumnName = "expire_time")]
        public DateTime ExpireTime { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "create_time")]
        public DateTime CreateTime { get; set; }
    }
}
